<template>
  <!-- 明细页面弹出框-->
  <el-dialog
    :title="isA104 ? '国库资金划拨附加域明细' : '国库资金国债兑付贷记划拨附加域明细'"
    center
    :visible.sync="open"
    width="1024px"
    :close-on-click-modal="true"
    @close="closeFn"
    append-to-body
  >
    <el-form ref="detailsForm" :model="innerFormData" label-width="150px" :disabled="true" v-if="isA104">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="征收机关大类代码：" prop="deptCode">
            <el-select v-model="innerFormData.deptCode" placeholder="" style="width: 100%" disabled>
              <el-option
                v-for="dict in dictMap.DEPT_CODE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="预算科目代码：:" prop="subjectCode">
            <el-input v-model="innerFormData.subjectCode" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="发生额货币种类：:" prop="curcd">
            <el-input v-model="innerFormData.curcd" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="发生额：:" prop="amount">
            <el-input v-model="innerFormData.amount" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-form ref="detailsForm" :model="innerFormData" label-width="150px" :disabled="true" v-if="!isA104">
      <el-row type="flex">
        <el-col :span="12">
          <el-form-item label="兑付国债银行大类：" prop="debtBankType">
            <el-select v-model="innerFormData.debtBankType" placeholder="" style="width: 100%" disabled>
              <el-option
                v-for="dict in dictMap.DEBT_BANK_TYPE"
                :key="dict.value"
                :label="`${dict.value}-${dict.text}`"
                :value="dict.value"
              ></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="本金代码：:" prop="capitalCode">
            <el-input v-model="innerFormData.capitalCode" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="本金金额币种：:" prop="capitalCurcd">
            <el-input v-model="innerFormData.capitalCurcd" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="本金金额：:" prop="capitalAmount">
            <el-input v-model="innerFormData.capitalAmount" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="利息代码：:" prop="accrualCode">
            <el-input v-model="innerFormData.accrualCode" placeholder="" />
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="利息金额币种：:" prop="accrualCurcd">
            <el-input v-model="innerFormData.accrualCurcd" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="12">
          <el-form-item label="利息金额：:" prop="accrualAmount">
            <el-input v-model="innerFormData.accrualAmount" placeholder="" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>
<script>
export default {
  name: "DigitalCertificateDownloadQueryInnerDetails",
  components: {},
  props: {
    dictMap: {
      type: Object,
      default: () => {
        return {};
      },
    },
    innerFormData: {
      type: Object,
      default: () => {
        return {};
      },
    },
    isA104: {
      type: Boolean,
      default: () => {
        return true;
      },
    },
  },
  data() {
    return {
      // 是否显示弹出层
      open: false,
    };
  },
  mounted() {},
  watch: {
    open(D) {
      if (D) {
        console.log(this.innerFormData, "Aaaaaaaaa");
      }
    },
  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm("logForm");
      // this.$set(this, "form", {});
    },
    closeFn() {
      this.open = false;
    },
    show() {
      this.open = true;
    },
    cancel() {
      this.open = false;
      this.reset();
    },
  },
};
</script>
<style>
.label-header-msg {
  font-weight: bold;
}

.form-card {
  margin-bottom: 10px;
}
</style>
